import instance from '@/utils/axios'
//面试技巧列表
export function technicList(limit) {
    return instance({
        url: `/articles/technic`,
        params: limit
    })
}

//面试技巧详情
export function technicParticulars(id) {
    return instance({
        url: `/articles/share/${id}`,
    })
}
//面试技巧分享评论
export function technicComments(id, params) {
    return instance({
        url: `/articles/comments/` + id,
        params
    })
}

//面经分列表

export function shareList(params) {
    return instance({
        url: `/articles/share`,
        params
    })
}
//发表评论
export function articlescommentsApi(data) {
    return instance({
        url: `/articles/comments`,
        method: 'post',
        data,
        hasToken: true
    })
}
//点赞
export function articlesStarApi(data) {
    return instance({
        url: `/articles/star`,
        method: 'post',
        data,
        hasToken: true
    })
}
//收藏


export function articlesCollectApi(data) {
    return instance({
        url: `/articles/collect`,
        method: 'post',
        data,
        hasToken: true
    })
}
//面经热搜
export function shareTopSearchApi() {
    return instance({
        url: `/articles/shareTopSearch`,
        hasToken: false
    })
}

//市场数据
export function chartDatahot() {
    return instance({
        url: `/chart-data/hot`,
        hasToken: false
    })
}